package router

import (
	"cgs-server/server"
	"cgs-server/server/cgs/app/api"
	"cgs-server/server/cgs/app/store/mongo"
)

func initWorksheetViewRouter() {
	storeIns, _ := mongo.GetMongoFactory()

	handler := api.NewWorksheetViewHandler(storeIns)

	//server.Get("/api/v1/app/worksheet/view/get", handler.Get, "", server.Login)
	server.Post("/api/app/worksheet/view/save", handler.Save, "", server.Login)
	server.Post("/api/app/worksheet/view/delete", handler.Delete, "", server.Login)
	server.Post("/api/app/worksheet/view/update", handler.Update, "", server.Login)
}
